package com.zgjkhis.modules.system.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 诊断
 */
@Data
@TableName("his_tcm_diseases")
@ApiModel(value = "TcmDiseases对象", description = "TcmDiseases对象")
public class TcmDiseases implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 中医疾病标识
	 */
	@ApiModelProperty(value = "中医疾病标识")
	@TableId(value = "tcm_diseases_id", type = IdType.AUTO)
	private Integer tcmDiseasesId;
	/**
	 * 中医疾病分类标识
	 */
	@ApiModelProperty(value = "中医疾病分类标识")
	private Integer classifyId;
	/**
	 * 中医疾病代码
	 */
	@ApiModelProperty(value = "中医疾病代码")
	private String diseasesCode;
	/**
	 * 中医疾病名称
	 */
	@ApiModelProperty(value = "中医疾病名称")
	private String diseasesName;
	/**
	 * 其他代码
	 */
	@ApiModelProperty(value = "其他代码")
	private String otherCode;
	/**
	 * 拼音码
	 */
	@ApiModelProperty(value = "拼音码")
	private String pinyinCode;
	/**
	 * 是否是常用(0不是 1是)
	 */
	@ApiModelProperty(value = "是否是常用(0不是 1是)")
	private String isUsed;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private String sort;

	private String remark;

	public void copy(Supplier source){
		BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
	}


}
